package com.aaa.charge.service.impl;


import com.aaa.charge.dao.ChargeItemDao;
import com.aaa.charge.service.ChargeItemService;

import com.aaa.entity.OrderChargeItem;
import com.aaa.vo.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * @author pzs
 * @date 2023/3/24 18:51
 * @description ChargeItemServiceImpl
 */
@Service
public class ChargeItemServiceImpl implements ChargeItemService {
    @Resource
    private ChargeItemDao orderChargeItemDao;

    @Override
    public Result<List<OrderChargeItem>> allChargeItem(String orderId) {
        List<OrderChargeItem> orderChargeItems =orderChargeItemDao.selectByOrderId(orderId);
        return new Result<>(orderChargeItems);
    }
}
